package jmind.dolphin.redis;

import io.netty.buffer.ByteBuf;
import jmind.dolphin.redis.client.handler.RedisReplyDecoder;

import java.io.IOException;

public interface Reply<T> {
  byte[] CRLF = new byte[] { RedisReplyDecoder.CR, RedisReplyDecoder.LF };

  T data();
  void write(ByteBuf os) throws IOException;
}
